Using a secondary DNS when lookup fails in primary? [migrated]

Posted by Huckle on Server Fault See other posts from Server Fault or by Huckle
Published on 2012-04-16T02:20:51Z Indexed on 2012/04/16 5:34 UTC
Read the original article Hit count: 606

Filed under:
|
|

I use a VPN to connect my development machine to my school's CS dept. The development machine is Ubuntu as we do C programming in Unix. I used vpnc to do that. The school uses some DNS entries that only resolve on their DNS servers, i.e., internalserver.csdept.school.edu

I am normally attached to the VPN whenever booted for convenience. However I noticed the other day that when I disconnect the VPN all my DNS queries fail. This obviously means that vpnc set up the school's DNS to be used. However I'd rather not use their DNS all the time (tracking and privacy and whatnot). Is there a way I can restore my ISP's DNS and then if the lookup fails, have it use my school's DNS?

© Server Fault or respective owner

Related posts about dns

Related posts about unix